import Mock from 'mockjs'

import tabs from '@/data/tabs.json'
import cards from '@/data/cards.json'
import tabGoods from '@/data/tabGoods.json'
import guess from '@/data/guessLikes.json'
import carousel from '@/data/carousel.json'
import categories from '@/data/category.json'
import recommend from '@/data/recommend.json'

Mock.mock('http://localhost:8081/api/tabs', 'get', () => {
	return tabs
})

Mock.mock('http://localhost:8081/api/cards', 'get', () => {
	return cards
})

Mock.mock('http://localhost:8081/api/tabGoods', 'get', () => {
	return tabGoods
})

Mock.mock('http://localhost:8081/api/guess', 'get', () => {
	return guess
})

Mock.mock('http://localhost:8081/api/carousel', 'get', () => {
	return carousel
})

Mock.mock('http://localhost:8081/api/categories', 'get', () => {
	return categories
})

Mock.mock('http://localhost:8081/api/recommend', 'get', () => {
	return recommend
})